package de.fuberlin.inf.alp2;

public class PerfectNumbers {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//int[] pd28 = Quicksort.sort(pd28);
//		for (int i = 0; i < pd28.length && (pd28[i] != 0); i++)
//			System.out.println(pd28[i]);
				

	}
	
	public static int[] getProperDivisors(int number) {
		int sqrt = (int) Math.sqrt(number);
		int[] divs = new int[sqrt];
		divs[0] = 1;
		int j = 1;
		for (int i = 2; i < sqrt; i++) {
			if (number % i == 0) {
				divs[j++] = i;
				divs[j++] = number / i;
			}
		}
		return divs;
	}

}
